package com.example.demo.entity;

import java.util.Arrays;
import java.util.List;

public class Users<T> {
    @Override
    public String toString() {
        return "Users{" +
                "total=" + total +
                ", users=" + Arrays.toString(users.toArray()) +
                '}';
    }

    int total;
    List<T> users;
    int totalMoney;

    public int getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(int totalMoney) {
        this.totalMoney = totalMoney;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(List<T> users) {
        this.total = users.size();
    }

    public List<T> getUsers() {
        return users;
    }

    public void setUsers(List<T> users) {
        this.users = users;
    }
}
